<?php


namespace app\api\controller\v12;


use app\api\controller\v2\Auth;
use app\common\cachemodel\ZlVipRanking;
use think\response\Json;

class Vip extends Auth
{
    /**
     * 会员排行榜
     * @return Json
     * @throws \Exception
     */
    public function getRankingList()
    {
        $ranking = (new ZlVipRanking())->getVipRankingList($this->user);

        return show(config('code.success'), '请求成功', $ranking);
    }
}
